Skip to content

Provide object-level packages[].platforms[].boards[] package index da… #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 22, 2021
Merged

Provide object-level packages[].platforms[].boards[] package index da… #196

merged 1 commit into from
Jun 22, 2021

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Jun 22, 2021

…ta to rules

Data checking rules for package indexes need to iterate over its object-level components. To facilitate this, slices of
such objects accompanied by the necessary metadata are generated as package index project data.

This was already done for packages, platforms, and tools, but not for boards. Although board objects are trivial, this
seems like it will provide for cleaner rule functions that apply to to these objects than the alternative of generating
the data on a per-rule basis.

…ta to rules

Data checking rules for package indexes need to iterate over its object-level components. To facilitate this, slices of
such objects accompanied by the necessary metadata are generated as package index project data.

This was already done for packages, platforms, and tools, but not for boards. Although board objects are trivial, this
seems like it will provide for cleaner rule functions that apply to to these objects than the alternative of generating
the data on a per-rule basis.
@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Jun 22, 2021
@per1234 per1234 requested review from silvanocerza and umbynos June 22, 2021 07:39
@codecov-commenter
Copy link

Codecov Report

Merging #196 (276774e) into main (5ef2649) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #196      +/-   ##
==========================================
+ Coverage   85.15%   85.17%   +0.01%     
==========================================
  Files          43       43              
  Lines        3389     3392       +3     
==========================================
+ Hits         2886     2889       +3     
  Misses        392      392              
  Partials      111      111              
Flag Coverage Δ
unit 85.17% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
internal/project/projectdata/packageindex.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5ef2649...276774e. Read the comment docs.

@per1234 per1234 merged commit 288fe38 into arduino:main Jun 22, 2021
@per1234 per1234 deleted the boards-projectdata branch June 22, 2021 08:25
@per1234 per1234 self-assigned this Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants